<template>
    <el-header class="goback" >
      <span>
        <i class="el-icon-arrow-left" @click="goback">返回</i>
        <p>欢迎使用云商汇平台</p>
      </span>
    </el-header>
</template>

<script>
    export default {
        methods:{
          goback(){
            if(this.$route.name == 'buy'|| this.$route.name == 'guanggao'){
              this.$router.push('/indexs');
              return;
            }
            this.$router.push('/indexs')
          }
        }
    }
</script>

<style scoped lang="scss">
.goback{
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  padding: 0;
  span{
   display: flex;
    flex-direction: row;
    width: 100%;
    height: 25px;
    text-align: left;
    padding: 5px 0 5px 10px;
    background: #09587e;
    color: #fff;
    i{
      line-height: 25px;
    }
    p{
      width: 80%;
      margin: 0;
      padding: 0;
      line-height: 25px;
      text-align: center;
    }
  }
}
</style>
